import axios from "axios";

const config = {
  // 生产环境
  URL: "http://101.37.254.116:3001/api/file",
  timeout: 30000,
};

const getLsaData = async (fileList) => {
  let formData = new FormData();
  formData.append("file", fileList[0]);
  return axios({
    method: "post",
    url: config.URL,
    timeout: config.timeout,
    data: formData,
    headers:{
      "Content-Type": "multipart/form-data"
    }
  })
};

export { getLsaData };
